using System;
using M1;
using UnityEngine;

public class Excel分析补充
{
    [Excel("TaskType")]
    public static object Excel字段分析TaskType(object rowdata)
    {
        if (rowdata is DBNull)
        {
            return TaskType.主线任务;
        }
        else
        {
            object o;
            if ( Enum.TryParse(typeof(TaskType), rowdata.ToString(), out o))
            {
                return o;
            }
        }
        
        return TaskType.主线任务;
    }
    
}
